package util.benchmark;

/**
 * 计数器
 * @author aleck
 *
 */
public class Counter {
	protected long count = 0;
	
	Counter() {
	}
	
	Counter(long initialValue) {
		count = initialValue;
	}
	
	public void inc() {
		count++;
	}
	
	public long getCount() {
		return count;
	}
	
	public void reset() {
		count = 0;
	}
}
